fix(wallet/price): URL-encode mintAddress query parameter - #1466
fix(wallet/price): URL-encode mintAddress query parameter#1466rajanpanth wants to merge 1 commit into
Conversation
mintAddress comes from the request query string and was interpolated into the upstream price API URL unescaped. Wrap it in encodeURIComponent so reserved characters can't alter the outgoing request.
|
@rajanpanth is attempting to deploy a commit to the Superteam Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
WalkthroughThe wallet price route now URL-encodes the token mint address in the Jupiter API request. Existing request headers and 60-second revalidation remain unchanged. ChangesWallet price API
Estimated code review effort: 2 (Simple) | ~5 minutes Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
mintAddresscomes from the request query string and was interpolated into the upstream Jupiter price URL unescaped. Wrapped inencodeURIComponentso reserved characters can't alter the outgoing request.Behaviour for valid mint addresses is unchanged. Formatting follows
oxfmt.pnpm check-typesandpnpm lintpass.Summary by CodeRabbit